import * as moment from 'moment';
// const { VM } = require('vm2')
class Test {
    
    async test() {

        let date = moment().subtract(1, "M").toDate()//更新频率 1个月
        // console.log('date__________________','2017-11' < '2017-12');
        console.log('__________________',moment().subtract(1, "M").format('YYYY-MM'));
        

    }

}

let test = new Test();
test.test();
export default test;